-- CALC_ACTIVITY_BOSS_DROP

-- 计算召唤兽当前命中
-- @param summon    召唤兽
return function(user, dbase)
    -- 取得配置信息
    local classId = dbase["class_id"];
    local maxAmount = dbase["max"];
    local minAmount = dbase["min"];

    -- 获取随机数
    local seed = DungeonM.getRandSeed("CALC_ACTIVITY_BOSS_DROP");
    local diff = maxAmount - minAmount + 1;
    local amount = minAmount + seed % diff;

    return { 1, classId, amount };
end
